package com.jinhongone.pattern.behavior.state.after;

/**
 * @author jinho
 * @className LiftState
 * @description 抽象状态角色
 * @date 2025/4/16 14:49
 */
public abstract class LiftState {
    //环境对象
    private Context context;

    public void setContext(Context context) {
        this.context = context;
    }
    public Context getContext() {
        return context;
    }

    public abstract void open();
    public abstract void close();
    public abstract void run();
    public abstract void stop();

}
